package com.plian.system.service.zzd.bank.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.plian.system.entity.zzd.ReportAccInfo;
import com.plian.system.mapper.zzd.ReportAccInfoMapper;
import com.plian.system.service.zzd.bank.IReportAccInfoService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @Description: TODO
 * @Author: Take-off
 * @Date: 2023/6/2 2:24 PM
 * @Param
 * @return
 * @Version: 1.0
 **/
@Service
@AllArgsConstructor
public class ReportAccInfoServiceImpl extends ServiceImpl<ReportAccInfoMapper, ReportAccInfo> implements IReportAccInfoService {

    @Override
    public  List<ReportAccInfo> getAccInfos(Date date){
        return list(Wrappers.<ReportAccInfo>lambdaQuery().le(ReportAccInfo::getOpeningTime, date));
    }

}
